<template>
  <section class="group-list">
    <simple-title title="未通过审核的资讯" :show="false"></simple-title>
    <div class="inner">
      <info-item :data="i" v-for="i in list" :key="i.id" @delct="delct" :type="1"></info-item>
      <div class="page-container">
        <Page :total="num" @on-change="pab" />
      </div>
    </div>
  </section>
</template>

<script>
import SimpleTitle from '../../../components/Title/SimpleTitle'
import InfoItem from '../../../components/ListItem/InfoItem'
export default {
  name: 'ThemetList',
  components: {
      SimpleTitle,
      InfoItem
  },
   data () {
      return {
          list: [],
          num:0,
          page:0
      }
   },
    created () {
       this.getinfo()
    },
    computed: {

    },
    methods: {
        delct () {
            this.getinfo()
        },
        pab (page) {
            this.page = page
            this.getinfo()
        },
        getinfo () {
            let _this =this
            _this.$post('/api/activity/myConsultation',
                {
                    token:_this.$token,
                    status:3,
                    num:_this.num,
                    page:_this.page
                }, function (res) {
                    _this.num = res.count
                    _this.list = res.data
                }, function (errcode, errmsg,err) {
                    console.log(err)
                    console.log(errmsg)
                })
        }
    }
}

</script>

<style lang="less" scoped>
  @import "../../../style/style.less";
  .group-list {
    border: 1px solid @border-color;
    padding: 15px;
    .inner {
      padding-top: 15px;
    }
  }
</style>
